﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<AutorizacionViajesMVC.WSRendir.Rendir>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	PokaYoke
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Panel Rendir Cuentas</h2>

    <table>
        <tr>
            <th>
                CodAU
            </th>
            <th>
                CodEMP
            </th>
            <th>
                CodigoRE
            </th>
            <th>
                Combustible
            </th>
            <th>
                ESTADOSOL
            </th>
            <th>
                Gastos
            </th>
            <th>
                Hotel
            </th>
            <th>
                IMPAereo
            </th>
            <th>
                Movilidad
            </th>
            <th>
                Otros
            </th>
            <th>
                Pasaje
            </th>
            <th>
                Telefono
            </th>
            <th>
                Viaticos
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <%--<td>
                <%: Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
                <%: Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%> |
                <%: Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>
            </td>--%>
            <td>
                <%: item.CodAU %>
            </td>
            <td>
                <%: item.CodEMP %>
            </td>
            <td>
                <%: item.CodigoRE %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Combustible) %>
            </td>
            <td>
                <%: item.ESTADOSOL %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Gastos) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Hotel) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.IMPAereo) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Movilidad) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Otros) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Pasaje) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Telefono) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.Viaticos) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear Rendir Cuentas", "Create") %>
    </p>

</asp:Content>

